<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 150px;
            height: 150px;
            background-color: #ac2b6b;
            position: relative;
            left: 360px;
            top: 300px;
            transition: 3s;
        }
        
        .box:hover {
            transform: rotate(180deg) scale(3) translate(30px, 30px);
        }
        
        img {
            width: 500px;
            height: 300px;
            /* 初始状态*/
            position: relative;
            transition: 3s;
            left: 400px;
            top: 400px;
        }
        /*结束状态*/
        
        img:hover {
            width: 600px;
            height: 400px;
        }
    </style>
</head>

<body>
    <div class="box"></div>
    <div class=".boy">
        <img src="./1.webp" alt="">
    </div>

</body>

</html>